<?php /* Smarty version Smarty-3.1.14, created on 2017-08-21 11:38:34
         compiled from "E:\phpStudy\WWW\zyshop\admin\templates\peisong_list.html" */ ?>
<?php /*%%SmartyHeaderCode:1408159950108b923f1-60206231%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fc619773a148494e19636f95f27169cfb08eadfa' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\zyshop\\admin\\templates\\peisong_list.html',
      1 => 1503286713,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1408159950108b923f1-60206231',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_59950108bc0993_14022230',
  'variables' => 
  array (
    'URL' => 0,
    'row' => 0,
    'list' => 0,
    'p_list' => 0,
    'listp' => 0,
    'res' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59950108bc0993_14022230')) {function content_59950108bc0993_14022230($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
resource/laydate/laydate.js"></script>
<style>
table{text-align: center;}
th{text-align:center; font-weight: bolder;}
th a{ color:#000000;}
.firtd {	width: 100px;	padding-right: 10px;	text-align: right;}
input{width: 90px;}
textarea {	width: 350px;	height: 100px;}
#jin{
color:#f00;
}
#jin1{
color:#0D93BF;
}
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>配送员列表</h3>
     <form action="peisong.php" name="searchForm" method="get">
        <input type="hidden" name="act" value="list">
        <!-- 品牌 -->
        <select name="qy" onChange="quyush(this,'pei')" required>
          <option value="0">==请选择==</option>
          <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['row']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value){
$_smarty_tpl->tpl_vars['list']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['list']->value['r_id'];?>
" <?php if ($_GET['qy']==$_smarty_tpl->tpl_vars['list']->value['r_id']){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['list']->value['r_name'];?>
</option>
          <?php } ?>
        </select>
        <select name="pei" >
          <option value="0">==请选择==</option>
          <?php  $_smarty_tpl->tpl_vars['listp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['listp']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['p_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['listp']->key => $_smarty_tpl->tpl_vars['listp']->value){
$_smarty_tpl->tpl_vars['listp']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['listp']->value['s_id'];?>
" <?php if ($_GET['pei']==$_smarty_tpl->tpl_vars['listp']->value['s_id']){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['listp']->value['shop_name'];?>
</option>
          <?php } ?>
        </select>
        
        <!--关键字-->
        <input type="text"  style="width:180px; height:18px;margin-left:5px; vertical-align: middle;" name="keywords" value="<?php echo $_GET['keywords'];?>
" placeholder="关键字">
        <input value="搜索" id="sousuo" style="width:50px; height:27px; margin-top:13px;" class="button" type="submit">
        <div style="background:rgba(251,112,45,1);width:125px;height:40px;float:right;text-align:center;border-radius:5px;">
          <a href="peisong.php?act=edit">
            <h5 style="padding:10px;color:#fff;">添加配送员</h5>
          </a>
        </div>
    </form>
  </div> 
</div>
<div class="fixed_bottom">
  <form method="post" action="" id="aspnetForm" name="form1">
    <table align="center;" class="table tb-type2">
      <thead>
        <tr>
          <th width="50"><a>编号</a></th>
          <th width="25%"><a>配送员名称</a></th>
          <th><a>电话</a></th>
          <th><a>邮箱</a></th>
          <th><a>商户名称</a></th>
          <th><a>操作</a></th>
        </tr>
      </thead>
      <tbody id="sortable">
        <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['res']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value){
$_smarty_tpl->tpl_vars['list']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['list']->key;
?>
            <tr>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['user_id'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['user_name'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['mobile_phone'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['email'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['shop_name'];?>
</td>
              <td>
                <a href="peisong.php?act=edit&user_id=<?php echo $_smarty_tpl->tpl_vars['list']->value['user_id'];?>
">编辑</a> 
                <a href="peisong.php?act=del&user_id=<?php echo $_smarty_tpl->tpl_vars['list']->value['user_id'];?>
">删除</a> 
              </td>
            </tr>
        <?php } ?>
      </tbody>
    </table>
   <div class="page"></div>
  </form>
</div>
</body>
<script>
  function quyush(th,cla){
    var id=$(th).val();
    $.post("peisong.php?act=peaj",{id:id},function(data){
      if(data){
        $("select[name="+cla+"]").html(data);
      }else{
        $("select[name="+cla+"]").html("<option value='0'>暂无</option>");
      }
      
    })
  }
</script>
</html><?php }} ?>